Skip to content

[3.15] gh-151640: Track sharing of BytesIO buffer in free-threaded builds (GH-151651)#153151

Merged
nascheme merged 2 commits into
python:3.15from
ZeroIntensity:backport-881a13a-3.15
Jul 9, 2026
Merged

[3.15] gh-151640: Track sharing of BytesIO buffer in free-threaded builds (GH-151651)#153151
nascheme merged 2 commits into
python:3.15from
ZeroIntensity:backport-881a13a-3.15

Conversation

@ZeroIntensity

@ZeroIntensity ZeroIntensity commented Jul 6, 2026

Copy link
Copy Markdown
Member

…eaded builds (pythonGH-151651)

(cherry picked from commit 881a13a)

Co-authored-by: Pedram Karimi <147748351+pedramkarimii@users.noreply.github.com>
@python-cla-bot

python-cla-bot Bot commented Jul 6, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@ZeroIntensity

Copy link
Copy Markdown
Member Author

@pedramkarimii Could you resign the CLA using your GitHub account email?

@pedramkarimii

Copy link
Copy Markdown
Contributor

@ZeroIntensity Done, thank you. I re-signed the CLA using my GitHub account email.

@pedramkarimii

Copy link
Copy Markdown
Contributor

I investigated the failing free-threaded checks. In the 3.15 backport, the new regression test calls BytesIO.peek(), which is not available on that branch. This raises AttributeError in the reader threads and causes regrtest to report ENV CHANGED.

The observed failures are caused by the test incompatibility rather than the COW change itself. The backport test needs the peek() call removed. I can prepare a small follow-up patch for that adjustment if that would be helpful.

@nascheme nascheme merged commit 3e19df0 into python:3.15 Jul 9, 2026
53 checks passed
@ZeroIntensity ZeroIntensity deleted the backport-881a13a-3.15 branch July 9, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants